import { ReactNode } from "react"
//
interface Prosp{
  children:ReactNode
  onClose:()=>void
}
const Alter = ({children,onClose}:Prosp) => {
  return (
    <div className="alert alert-primary alert-dismissible fade show"  >
      {children}
       <button onClick={onClose} type="button" className="btn-close"  ></button>
    </div>
  )
}

export default Alter
